Image processing apparatus, image processing method, and storage medium

ABSTRACT

A purpose of the present invention is to provide an image processing apparatus for reproducing natural colors.  
     The image processing apparatus of the present invention applies desired image processing to an input signal by using a color correction table which changes an amount of conversion for a white point according to the luminance of white provided from an image output apparatus, and then supplying the signal for the image output apparatus. It is possible to avoid influence of adaptation of the eye by making chromaticity of a target white point (D=0, (xwt, ywt)) close to chromaticity of white of the image output apparatus (D=1, (xwd, ywd)). Further, the image processing apparatus of the present invention is constituted such that the target white point after the conversion is made close to a white point of the image output apparatus as luminance of the white provided from the image output apparatus increases. The reason for this constitution is that the human eye tends to adapt to bright light more than to dark light.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to image processing applied to an image input signal when a color space of the image input signal is converted to a color space of an image output apparatus.

[0003] 2. Description of the Prior Art

[0004] Devices such as a scanner, a monitor, a printer, and a projector individually have different color reproduction gamut. Thus, it is a problem how to reproduce a color while absorbing the difference in the color reproduction gamut.

[0005] For example, when color characteristics of a liquid crystal projector are matched to a color standard such as sRGB, it is first necessary to consider how to reproduce target color characteristics (a color matching method) within color gamut of the liquid crystal projector by comparing color gamuts of both of them. However, since the color standard such as sRGB is generally created based on color characteristics of a CRT display, when the color gamut of the projector, which has greenish color characteristics, and the color gamut of the sRGB are compared, there is difference in hue of gray (the direction of the gray axis) from white to black. There is a color matching method for reproducing target color characteristics with fidelity in a color gamut of a liquid crystal projector (color matching with priority to color reproduction) by a color correction for precisely matching color characteristics of the liquid crystal projector to the target color characteristics.

SUMMARY OF THE INVENTION

[0006] However, when the color characteristics of the projector are matched to the target color characteristics such as sRGB, there is such a problem that a resultant image often appears reddish, which is a result of excessive-color correction. This is because the sense of the eye adapts such that the original greenish white of the projector appears as natural white when the image before the color correction is viewed.

[0007] The present invention is devised to solve the problem described above, and has a purpose of providing an image processing apparatus, an image processing method, a program, and a storage medium which reproduce natural colors.

[0008] According to the present invention, an image processing apparatus includes: a color correction table for changing an amount of conversion for a white point in accordance with luminance of white provided from an image output apparatus, wherein a desired image processing is applied to an input signal by using the color correction table, and then the signal is supplied for the image output apparatus.

[0009] In this way, making chromaticity of a target white point close to chromaticity of white of image output apparatus avoids an influence of the adaptation of the eye.

[0010] The present invention is the image processing apparatus, wherein a target white point after the conversion is made close to a white point of the image output apparatus as the luminance of the white provided from the image output apparatus increases.

[0011] This is because the human eye tends to adapt to bright light more than to dark light.

[0012] According to the present invention, an image processing apparatus includes: a color correction table for prioritizing color reproduction so as to correct color for color reproduction with fidelity; and a color correction table for prioritizing brightness so as to correct color while prioritizing brightness. A desired image processing is applied to an input signal by using the color correction table, then the signal is supplied for an image output apparatus, and a target white point after the conversion by the color correction table for prioritizing color reproduction is made close to a white point of the image output apparatus.

[0013] The present invention is the image processing apparatus, wherein the color correction table for prioritizing brightness and the color correction table for prioritizing color reproduction are switched in accordance with the input signal.

[0014] The present invention is an image processing method, wherein a desired image processing is applied to an input signal by using a color correction table for changing an amount of conversion for a white point in accordance with luminance of white provided from an image output apparatus, and wherein the signal is supplied for the image output apparatus.

[0015] The present invention is an image processing method, wherein a desired image processing is applied to an input signal by using a color correction table for prioritizing color reproduction so as to correct color for color reproduction with fidelity, and a color correction table for prioritizing brightness so as to correct color while prioritizing brightness, then the signal is supplied for an image output apparatus, and wherein a target white point after the conversion by the color correction table for prioritizing color reproduction is made close to a white point of the image output apparatus.

[0016] The present invention is a computer-program of instructions for execution by the computer to perform an image processing for conducting a desired color correction being applied to an input signal by using a color correction table for changing an amount of conversion for a white point in accordance with luminance of white provided from an image output apparatus.

[0017] The present invention is a computer-program of instructions for execution by the computer to perform an image processing for conducting a desired color correction being applied to an input signal by using a color correction table for prioritizing color reproduction so as to correct color for color reproduction with fidelity and a color correction table for prioritizing brightness so as to correct color while prioritizing brightness.

[0018] The present invention is a computer-readable medium storing the computer-program.

[0019] The present invention is a computer-readable medium storing a color correction table for changing an amount of conversion for a white point in accordance with luminance of white provided from an image output apparatus.

BRIEF DESCRIPTION OF THE DRAWINGS

[0020]FIG. 1 is a function block diagram of a color correction table generator of a first embodiment of the present invention;

[0021]FIG. 2 is a schematic block diagram showing an example of a specific hardware constitution of the color correction table generator and an image processing apparatus of the present invention;

[0022]FIG. 3 is a function block diagram of the image processing apparatus of the first embodiment of the present invention;

[0023]FIG. 4 is a flowchart describing the operation of the image processing apparatus 20B;

[0024]FIG. 5 is a flowchart describing a color correction table generation processing program executed by the first color correction table generator 20A;

[0025]FIG. 6 is a flowchart describing an output value calculation processing program of a three-dimensional color correction table (3D-LUT);

[0026]FIG. 7 is a function block diagram for an image processing apparatus of a second embodiment of the present invention;

[0027]FIG. 8 is a flowchart describing the operation of the image processing apparatus 20C; and

[0028]FIG. 9 is a drawing describing a target white point required for generating a color correction table with priority to color reproduction.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0029] The following section describes a preferred embodiment of the present invention while referring to drawings.

[0030]FIG. 1 is a function block diagram of a color correction table generator according to a first embodiment of the present invention, and FIGS. 3 and 7 are a function block diagram of an image processing apparatus according to the first embodiment of the present invention.

[0031] Hardware Construction

[0032]FIG. 2 shows an example of a concrete hardware construction about these the color correction table generating device and the image processing device by an outlined block diagram.

[0033] The present embodiment employs a computer system as an example of hardware for realizing the color-correction table generating device and the image processor. FIG. 3 shows the computer system as a block diagram. The computer system is provided with a scanner 11 a, a digital still camera 11 b, and a video camera 11 c as image input devices, and they are connected with a computer main unit 12. The individual input devices generate an image data where an image is represented by pixels arranged as dot matrix, and provide the computer main unit 12 with the image data, where the image data represents about 16.7 million colors by 256-gradation display in three primary colors comprising R, G, and B.

[0034] A floppy disk drive 13 a, a hard disk drive 13 b, and a CD-ROM drive 13 c are connected with the computer main unit 12 as external auxiliary storage apparatuses, the hard disk 13 b stores base programs relating to the system, and necessary programs are read from a floppy disk and a CD-ROM if required. A modem 14 a is connected for connecting the computer main unit 12 with an external network or the like as a communication device, and software and data are downloaded for introduction by connecting to the external network through a public communication line. In this example, though the modem 14 a is used for the external access through the telephone line, a constitution for access to a network through a LAN adaptor is also possible. In addition, a keyboard 15 a and a mouse 15 b are connected for operating the computer main unit 12.

[0035] The computer main unit 12 is provided with a display 17 a and a color printer 17 b as image output devices. The display 17 a is provided with a display area comprising 800 pixels in the horizontal direction and 600 pixels in the vertical direction, and 16.7 million colors are displayed on the individual pixels. This resolution is an example, and the resolution may be changed to 640×480 or 1024×768 as needed.

[0036] The color printer 17 b is an ink jet printer, and prints an image on a print sheet as a medium with color ink of four colors comprising C, M, Y, and K. As its image resolution, high density print such as 360×360 dpi or 720×720 dpi is available, and as its gradation representation, two-gradation representation by selecting whether attaching the color ink or not is available. A predetermined program is running on the computer main unit 12 to obtain an image through the image input devices, and to display or to provide on the image output device. An operating system (OS) 12 a operates as a base program, and a display driver (DSP DRV) 12 b and a printer driver (PRT DRV) 12 c are integrated into the operating system 12 a. The drivers 12 b and 12 c depend on the models of display 17 a and the color printer 17 b, and are added to or changed in the operating system 12 a according to the models. It is also possible to realize a feature in addition to a standard processing depending on the models. In other words, different additional processes are realized in a permissible range while a common processing system is maintained on a standard system as the operating system 12 a.

[0037] As a prerequisite for running the program, the computer main unit 12 is provided with a CPU 12 e, a RAM 12 f, a ROM 12 g, an I/O 12 h and the like, and the CPU 12 e executes the base program written in the ROM 12 g as needed while using the RAM 12 f as a temporary work area or specified memory area, or a program area, and controls the external apparatuses connected through the I/O 12 h and internal apparatuses.

[0038] The application 12 d is executed on the operating system 12 a, which serves as the base program. Contents of the processing in application 12 d vary, and include monitoring the operation of keyboard 15 a and the mouse 15 b as operating devices, properly controlling the different external apparatuses, executing corresponding calculation and the like when they are operated, and displaying or providing a processed result on the display 17 a or the color printer 17 b.

[0039] The computer system obtains image data through the scanner 11 a as an image input device, performs a predetermined image processing with the application 12 d, and show the processed result as output on the display 17 a or the color printer 17 b, which serve as image output devices.

[0040] Although in this embodiment the image processor is implemented as a computer system, such a computer system is not always required, but the system to which the image processor is applied may be any other system which requires the image processing of the present invention for the same image data. For example, there may be adopted a system wherein the image processor according to the present invention is built into a digital still camera and printing is performed by a color printer using image data after image processing. In a color printer which inputs and prints image data without going through a computer system, there may be adopted a construction wherein the image processing according to the present invention is performed for image data which are inputted through a scanner, a digital still camera, or a modem, followed by the execution of a printing process.

[0041] Of course, the present invention is also applicable to various other devices which handle image data, such as color facsimile devices, color copiers, and projectors.

[0042] Image Processing Control Program

[0043] The image processing control program according to the present invention is usually distributed in a stored state on a recording medium such as a floppy disk or a CD-ROM so that it can be read by the computer 12. The program is read by a media reader (e.g. CD-ROM driver 13 c or floppy disk drive 13 a) and is installed in the hard disk 13 b. Then, a CPU reads a desired program from the hard disk 13 b and executes a desired processing. The image processing control program itself according to the present invention also constitutes a part of the present invention.

[0044] Color Correction Table Generator

[0045] A color correction table generator 20A shown in FIG. 1 generates a color correction table for reproducing natural colors (a color correction table with priority to color reproduction).

[0046] In FIG. 1, the color correction table generator 20A is provided with a unit for determining target color space and individual parameters 20 e, a unit for calculating reference white point 20 f, a first conversion unit 20 g, a second conversion unit 20 h, a third conversion unit 20 i, a fourth conversion unit 20 j, a fifth conversion unit 20 k, a sixth conversion unit 20 l, and a color correction LUT storage section 20 b. Detailed processing of these individual constitution units is described later.

[0047] The following section describes a color correction table generation processing program executed by the color correction table generator 20A shown in FIG. 1 while referring to FIG. 5 and FIG. 6. In the present embodiment, description is provided for a case where the image output apparatus is a projector.

[0048] It is necessary to measure color characteristics data of the projector described below in advance before executing the color correction table generation processing program.

[0049] Namely, the following individual color characteristics data should be measured in advance.

[0050] Tristimulus values Xwp, Ywp, Zwp for white (Rd, Gd, Bd)=(255, 255, 255)

[0051] Tristimulus values Xrp, Yrp, Zrp for red(Rd, Gd, Bd)=(255, 0, 0)

[0052] Tristimulus values Xgp, Ygp, Zgp for green (Rd, Gd, Bd)=(0, 255, 0)

[0053] Tristimulus values Xbp, Ybp, Zbp for blue (Rd, Gd, Bd)=(0, 0, 255)

[0054] Tristimulus values Xkp, Ykp, Zkp for black (Rd, Gd, Bd)=(0, 0, 0)

[0055] The individual measured data are standardized with respect to the luminance of white (Ywd) using the following expression (1), and an offset at black is subtracted. [Equation  1] $\begin{matrix} \left. \begin{matrix} {X_{wd} = {\left( {X_{wp} - X_{kp}} \right)/Y_{wp}}} \\ {Y_{wd} = {\left( {Y_{wp} - Y_{kp}} \right)/Y_{wp}}} \\ {Z_{wd} = {\left( {Z_{wp} - Z_{kp}} \right)/Y_{wp}}} \\ {x_{wd} = {X_{wd}/\left( {X_{wd} + Y_{wd} + Z_{wd}} \right)}} \\ {y_{wd} = {Y_{wd}/\left( {X_{wd} + Y_{wd} + Z_{wd}} \right)}} \end{matrix} \right\} & (1) \end{matrix}$

[0056] While the expression shows the data for white, the same conversion is conducted for R, G, and B. For black, (Xkd, Ykd, Zkd)=(0, 0, 0).

[0057]FIG. 5 is a flowchart describing a color correction table generation processing program executed by the first color correction table generator 20A.

[0058] Processing for determining a target color space and individual parameters (S20)

[0059] As shown in FIG. 5, the unit for determining target color space and individual parameters 20 e in the color correction table generator 20A first determines the target color space and the individual parameters in a conversion matrix (S20).

[0060] First, chromaticity coordinates of individual colors, white (W), red (R), green (G), and Blue (B), in the target color space after the conversion are determined. Since the target color space is assumed as sRGB for the color correction table with priority to color reproduction, the individual chromaticity coordinates in the target color space are:

[0061] Chromaticity coordinates for white (R, G, B)=(255, 255, 255) are xwt=0.313, ywt=0.329,

[0062] Chromaticity coordinates for red (R, G, B)=(255, 0, 0) are xwt=0.640, ywt=0.330,

[0063] Chromaticity coordinates for green (R, G, B)=(0, 255, 0) are xwt=0.300, ywt=0.600, and

[0064] Chromaticity coordinates for blue (R, G, B)=(0, 0, 255) are xwt=0.150, ywt=0.060.

[0065] As other parameters, a partial adaptation parameter D and a matching limit lightness Lmax are determined. The details for these parameters are described later.

[0066] Then, the unit for determining target color space and individual parameters 20 e calculates a matrix Mt which converts RtGtBt to XtYtZt (S20). This conversion is also based on the definition of the target color space, and Mt is a matrix shown in the expression (2). [Equation  2] $\begin{matrix} {M_{t} = \begin{pmatrix} 0.4124 & 0.3576 & 0.1805 \\ 0.2126 & 0.7152 & 0.0722 \\ 0.0193 & 0.1192 & 0.9505 \end{pmatrix}} & (2) \end{matrix}$

[0067] Then, the unit for determining target color space and individual parameters 20 e calculates a matrix Md which converts RdGdBd to XdYdZd (S20). This conversion is based on the color characteristics of the projector, and Md is a matrix shown in the expression (3). [Equation  3] $\begin{matrix} {M_{d} = {\begin{pmatrix} x_{rd} & x_{gd} & x_{bd} \\ y_{rd} & y_{gd} & y_{bd} \\ z_{rd} & z_{gd} & z_{bd} \end{pmatrix}\begin{pmatrix} S_{r\quad d} & 0 & 0 \\ 0 & S_{gd} & 0 \\ 0 & 0 & S_{bd} \end{pmatrix}}} & (3) \end{matrix}$

[0068] where:

[0069] zrd=1-xrd-yrd

[0070] zgd=1-xgd-ygd

[0071] zbd=1-xbd-ybd

[0072] Srd, Sgd, and Sbd are values determined such that (Rd, Gd, Bd)=(255, 255, 255) is converted to (Xd, Yd, Zd)=(Xwd, Ywd, Zwd), and are obtained by the following expression: [Equation  4] $\begin{matrix} {\begin{pmatrix} S_{r\quad d} \\ S_{gd} \\ S_{bd} \end{pmatrix} = {\begin{pmatrix} x_{rd} & x_{gd} & x_{bd} \\ y_{rd} & y_{gd} & y_{bd} \\ z_{rd} & z_{gd} & z_{bd} \end{pmatrix}^{- 1}\begin{pmatrix} x_{wd} \\ y_{wd} \\ z_{wd} \end{pmatrix}}} & (4) \end{matrix}$

[0073] Then, the unit for determining target color space and individual parameters 20 e calculates a matrix Mwp used for a conversion from XtYtZt to Xt′Yt′Zt′ (S20). There is such a problem that a resultant image often appears reddish, which is a result of excessive-color correction when color characteristics of the projector are completely matched to the target color characteristics such as sRGB. This is because the sense of the eye adapts such that the original greenish white of the projector appears natural white when the image before the color correction is being viewed. To avoid the influence of this adaptation, XtYtZt is converted to Xt′Yt′Zt′ so as to make the chromaticity of the target white point close to the chromaticity of white of the projector. This conversion is conducted as follows based on theory of adaptation.

[0074] The tristimulus values XtYtZt are converted to response values L, M, and S of three types of the cones of the human eye (cells sensing color on the retina). [Equation  5] $\begin{matrix} {\begin{pmatrix} L \\ M \\ S \end{pmatrix} = {\begin{pmatrix} 0.0708 & 0.9447 & {- 0.0155} \\ {- 0.4612} & 1.3618 & 0.1013 \\ 0.0000 & 0.0000 & 1.0000 \end{pmatrix}\begin{pmatrix} X_{t} \\ Y_{t} \\ Z_{t} \end{pmatrix}}} & (5) \end{matrix}$

[0075] Then, the unit for determining target color space and individual parameters 20 e uses the following expressions to calculate response values L′, M′, and S′ of the cones after adaptation.

L′={(Lwd/Lwt)D+(1−D)}L  (6)

M′−{(Mwd/Mwt)D+(1−D)}M  (7)

S′−{(Swd/Swt)D+(1−D)}S  (8)

[0076] In these expressions, D is the partial adaptation parameter indicating a degree of the adaptation, and has a value in a range of 0≦D≦1. As shown in FIG. 9, the color adaptation is not conducted, namely a white point (xwt, ywt) in the target color space is used as the target white point when D=0. On the other hand, a white point (xwd, ywd) of the projector is used as the target white point when D=1. The target white point is a point which internally divides a line connecting (xwt, ywt) and (xwd, ywd) with each other on the xy coordinate when 0<D<1. The parameter D is a function of luminance of the white of the projector serving as an image output apparatus, and D increases as the luminance of the white of the projector increases (namely D is made close to the white point of the projector). The reason why D increases as the luminance of the white of the projector increases is that the human eye tends to adapt to bright light more than to dark light. Daylight locus shown in FIG. 9 is a typical chromaticity locus of daylight specified by CIE (International Commission on Illumination). Chromaticity of standard light such as D₅₀ and D₆₅, which is the white point of sRGB, exists on this locus.

[0077] Lwt, Mwt, and Swt in the expression (6) to the expression (8) are response values of the cones for the white in the target color space, and are obtained by assigning the tristimulus values for the white in the target color space Xwt, Ywt, and Zwt to the expression (5). Similarly, Lwd, Mwd, and Swd in the expression (6) to the expression (8) are response values of the cones for the tristimulus values Xwd, Ywd, and Zwd of the white of the projector.

[0078] Finally, the response values of the cones L′, M′, and S′ are converted back to the tristimulus values Xt′Yt′Zt′ by using the following expression. [Equation  6] $\begin{matrix} {\begin{pmatrix} X_{t}^{\prime} \\ Y_{t}^{\prime} \\ Z_{t}^{\prime} \end{pmatrix} = {\begin{pmatrix} 2.5592 & {- 1.7754} & 0.2195 \\ 0.8667 & 0.1331 & 0.0000 \\ 0.0000 & 0.0000 & 1.0000 \end{pmatrix}\begin{pmatrix} L^{\prime} \\ M^{\prime} \\ S^{\prime} \end{pmatrix}}} & (9) \end{matrix}$

[0079] A matrix in the expression (9) is an inverse matrix of the matrix in the expression (5). A matrix Mwp used for converting from XtYtZt to Xt′Yt′Zt′ is obtained by using the following expression. [Equation  7]   $\begin{matrix} {M_{wp} = {\begin{pmatrix} 2.5592 & {- 1.7754} & 0.2195 \\ 0.8667 & 0.1331 & 0.0000 \\ 0.0000 & 0.0000 & 1.0000 \end{pmatrix} \times \begin{pmatrix} {{\left( {L_{wd}/L_{wt}} \right)D} + \left( {1 - D} \right)} & 0 & 0 \\ 0 & {{\left( {M_{wd}/M_{wt}} \right)D} + \left( {1 - D} \right)} & 0 \\ 0 & 0 & \left( {{\left. {S_{wd}/S_{wt}} \right)D} + \left( {1 - D} \right)} \right. \end{pmatrix} \times \begin{pmatrix} 0.0708 & 0.9447 & {- 0.0155} \\ {- 0.4612} & 1.3618 & 0.1013 \\ 0.0000 & 0.0000 & 1.0000 \end{pmatrix}}} & (10) \end{matrix}$

[0080] The matrix Mwp is a unit matrix when D=0.

[0081] Processing for calculating a reference white point (S22)

[0082] The unit for calculating reference white point 20 f calculates a reference white point as follows (S22). In the color correction table with priority to color reproduction, a converted white is “the most bright white 6500K which the projector can provide”. Specifically, a reference white point XnYnZn in a conversion from Ld*ud*vd* to XdYdZd in S38 described later is set to tristimulus values of white. The reference white point XnYnZn is also obtained in advance.

[0083] When the output of the projector is RnGnBn for the reference white point XnYnZn, the following relationship is established between XnYnZn and RnGnBn. [Equation  8] $\begin{matrix} {\begin{pmatrix} X_{n} \\ Y_{n} \\ Z_{n} \end{pmatrix} = {{p\begin{pmatrix} X_{wt} \\ Y_{wt} \\ Z_{wt} \end{pmatrix}} = {{M_{d}\begin{pmatrix} \left( {R_{n}/255} \right)^{2.2} \\ \left( {G_{n}/255} \right)^{2.2} \\ \left( {B_{n}/255} \right)^{2.2} \end{pmatrix}} + \begin{pmatrix} X_{kd} \\ Y_{kd} \\ Z_{kd} \end{pmatrix}}}} & (11) \end{matrix}$

[0084] It is necessary to select a coefficient p in an expression (11) such that (Rn, Gn, Bn) is the brightest color in the color gamut of the projector, namely the maximum value of Rn, Gn, and Bn is 255. Since it is experimentally recognized that Rn=255 when white with a general color temperature (10000K or less) is provided for the current color characteristics of the projector, when Rn=255 is assigned to the expression (11), the coefficient p is represented as: [Equation  9] $\begin{matrix} {\begin{pmatrix} p \\ {- \left( {G\quad {n/255}} \right)^{2.2}} \\ {- \left( {B\quad {n/255}} \right)^{2.2}} \end{pmatrix} = {\begin{pmatrix} X_{wt} & {S_{gd}x_{gd}} & {S_{bd}x_{bd}} \\ Y_{wt} & {S_{gd}y_{gd}} & {S_{bd}y_{bd}} \\ Z_{wt} & {S_{gd}z_{gd}} & {S_{bd}z_{bd}} \end{pmatrix}^{- 1}\begin{pmatrix} {{S_{rd}x_{rd}} + X_{kd}} \\ {{S_{rd}y_{rd}} + Y_{kd}} \\ {{S_{rd}z_{rd}} + Z_{kd}} \end{pmatrix}}} & (12) \end{matrix}$

[0085] The coefficient p is obtained from the expression (12), and then the tristimulus values Xn, Yn, and Zn for the reference white point are obtained by assigning the obtained coefficient p to the expression (ii).

[0086] Then, the tristimulus values Xn, Yn, and Zn for the reference white point are used to obtain coordinates (Lwd*, uwd*, vwd*) and (Lkd*, ukd*, vkd*) for the white and black of the projector in a uniform color space CIELUV based on the following expression. [Equation  10]   $\begin{matrix} \left. \begin{matrix} \begin{matrix} {L^{*} = \quad {{116\quad \left( {Y_{d}/Y_{n}} \right)^{1/3}} - 16}} & {\quad {{\text{if}\quad {Y_{d}/Y_{n}}} > 0.008856}} \\ {= \quad {903.3\quad \left( {Y_{d}/Y_{n}} \right)}} & {\quad {{\text{if}\quad {Y_{d}/Y_{n}}} \leqq 0.008856}} \end{matrix} \\ {u^{*} = {13\quad {L^{*}\left\lbrack {{4{X_{d}/\left( {X_{d} + {15\quad Y_{d}} + {3\quad Z_{d}}} \right)}} - {4\quad {X_{n}/\left( {X_{n} + {15\quad Y_{n}} + {3\quad Z_{n}}} \right)}}} \right\rbrack}}} \\ {v^{*} = {13\quad {L^{*}\left\lbrack {{9\quad {Y_{d}/\left( {X_{d} + {15\quad Y_{d}} + {3\quad Z_{d}}} \right)}} - {9\quad {Y_{n}/\left( {X_{n} + {15\quad Y_{n}} + {3\quad Z_{n}}} \right)}}} \right\rbrack}}} \end{matrix} \right\} & (13) \end{matrix}$

[0087] When the tristimulus values for white of the projector Xwd, Ywd, and Zwd are assigned to the expression (13), Lwd*, uwd* and vwd* are obtained, and when the tristimulus values for black of the projector Xkd, Ykd, and Zkd are assigned to the expression (13), Lkd*, ukd* and vkd* are obtained.

[0088] Processing for calculating output values of the three-dimensional color correction table (S24).

[0089] Then, the first to sixth conversion units 20 g to 20 l in the color correction table generator 20A calculate output values RdGdBd corresponding to the individual input values RtGtBt for a three-dimensional color correction table (3D-LUT) (S24). The output value calculation processing on the three-dimensional color correction table (3D-LUT) is described in more detail while referring to FIG. 6. In FIG. 6, processing in S30 is conducted by the first conversion unit 20 g, processing in S32 is conducted by the first conversion unit 20 h, processing in S34 is conducted by the first conversion unit 20 i, processing in S36 is conducted by the first conversion unit 20 j, processing in S38 is conducted by the first conversion unit 20 k, and processing in S40 is conducted by the first conversion unit 201.

[0090] The first conversion unit 20 g converts the input RtGtBt entered into the three-dimensional color correction table to the tristimulus values XtYtZt based on definition of the target color space (S30). Since sRGB is the target color space in the color correction table with priority to color reproduction, the calculation is conducted in accordance with the following expressions (14) and (15) based on the definition of sRGB. [Equation  11] $\begin{matrix} \left. \begin{matrix} {{\text{if}\quad {R_{t}/255}},{G_{t}/255},{{B_{t}/255} \leqq 0.04045}} \\ \begin{matrix} {r_{t} = \quad {{R_{t}/255}/12.92}} \\ {g_{t} = \quad {{G_{t}/255}/12.92}} \\ {b_{t} = \quad {{B_{t}/255}/12.92}} \end{matrix} \end{matrix} \right\} & (14) \\ \left. \quad \begin{matrix} {{\text{if}\quad {R_{t}/255}},{G_{t}/255},{{B_{t}/255} \geqq 0.04045}} \\ \begin{matrix} {r_{t} = \quad \left\lbrack {\left( {{R_{t}/255} + 0.055} \right)/1.055} \right\rbrack^{2.4}} \\ {g_{t} = \quad \left\lbrack {\left( {{G_{t}/255} + 0.055} \right)/1.055} \right\rbrack^{2.4}} \\ {b_{t} = \quad \left\lbrack {\left( {{B_{t}/255} + 0.055} \right)/1.055} \right\rbrack^{2.4}} \end{matrix} \end{matrix} \right\} & (15) \end{matrix}$

[0091] The final values for the XtYtZt are obtained by the following expression (16). [Equation  12] $\begin{matrix} {\begin{pmatrix} X_{t} \\ Y_{t} \\ Z_{t} \end{pmatrix} = {M_{t}\begin{pmatrix} r_{t} \\ g_{t} \\ b_{t} \end{pmatrix}}} & (16) \end{matrix}$

[0092] Mt in the expression (16) is the matrix obtained by the expression (2).

[0093] Then, the second conversion unit 20 h uses the expression (10) and the following expression (17) to convert XtYtZt to Xt′Yt′Zt′ (S32). [Equation  13] $\begin{matrix} {\begin{pmatrix} X_{t}^{\prime} \\ Y_{t}^{\prime} \\ Z_{t}^{\prime} \end{pmatrix} = {M_{wp}\begin{pmatrix} X_{t} \\ X_{t} \\ X_{t} \end{pmatrix}}} & (17) \end{matrix}$

[0094] With this conversion, the influence from the adaptation of the sense of the eye is avoided. Namely, processing for making the chromaticity of the target white point close to the chromaticity of the white of the projector is conducted by converting from XtYtZt to Xt′Yt′Zt′.

[0095] Then, the third conversion unit 20 i uses the following expression (18) to convert the tristimulus values Xt′Yt′Zt′ in the target color space to a coordinate value Lt*ut*vt* in the color compression space CIE LUV for associating the color in the target color space and the color of the projector with each other by representing them in the CIE LUV space, which is a uniform color space (S34). [Equation  14]   $\begin{matrix} \left. \begin{matrix} \begin{matrix} {L_{t}^{*} = \quad {{116\quad \left( {Y_{t}^{\prime}/Y_{wt}^{\prime}} \right)^{1/3}} - 16}} & {\quad {{\text{if}\quad {Y_{t}^{\prime}/Y_{wt}^{\prime}}} > 0.008856}} \\ {= \quad {903.3\quad \left( {Y_{t}^{\prime}/Y_{wt}^{\prime}} \right)}} & {\quad {{\text{if}\quad {Y_{t}^{\prime}/Y_{wt}^{\prime}}} \leqq 0.008856}} \end{matrix} \\ {u_{t}^{*} = {13L*\left\lbrack {{4{X_{t}^{\prime}/\left( {X_{t}^{\prime} + {15Y_{t}^{\prime}} + {3Z_{t}^{\prime}}} \right)}} - {4{X_{wt}^{\prime}/\left( {X_{wt}^{\prime} + {15Y_{wt}^{\prime}} + {3Z_{wt}^{\prime}}} \right)}}} \right\rbrack}} \\ {v_{t}^{*} = {13L*\left\lbrack {{9{Y_{t}^{\prime}/\left( {X_{t}^{\prime} + {15Y_{t}^{\prime}} + {3Z_{t}^{\prime}}} \right)}} - {9{Y_{wt}^{\prime}/\left( {X_{wt}^{\prime} + {15Y_{wt}^{\prime}} + {3Z_{wt}^{\prime}}} \right)}}} \right\rbrack}} \end{matrix} \right\} & (18) \end{matrix}$

[0096] Xwt′, Ywt′, and Zwt′ in the expression (18) are values of Xt′, Yt′, and Zt′ at the white (Rt=Gt=Bt=255) in the target color space.

[0097] Then, the fourth conversion unit 20 j obtains a color Ld*ud*vd* of the projector corresponding to the color Lt*ut*vt* in the target color space (S36).

[0098] Since the three-dimensional color correction table with priority to color reproduction has such a purpose that a color matches to the target color space, basically (Ld*, ud*, vd*)=(Lt*, ut*, vt*). However, since the luminance of the black of the projector is not zero, and (Xkd, Ykd, Zkd)=(0, 0, 0) in the target color space is out of the color gamut of the projector, when the calculation is conducted without considering these facts, the gradation is shrunk in a low gradation area. Thus, in the present embodiment, a corresponding color deviates from a color in the target color space as the lightness of the color in the target color space Lt* decreases, and the black in the target color space (Lt*=0) is converted to the measured black of the projector. The processing in S36 described above is represented by the following expressions. [Equation  15] $\begin{matrix} \left. \begin{matrix} {{\text{if}\quad L_{t}^{*}} > L_{\max}^{*}} \\ \begin{matrix} {L_{d}^{*} = \quad L_{t}^{*}} \\ {u_{d}^{*} = \quad u_{t}^{*}} \\ {v_{d}^{*} = \quad v_{t}^{*}} \end{matrix} \end{matrix} \right\} & (19) \\ \left. \begin{matrix} {{\text{if}\quad L_{t}^{*}} \leqq L_{\max}^{*}} \\ \begin{matrix} {L_{d}^{*} = \quad {L_{t}^{*} + {\left( {L_{kd}^{*} - L_{kt}^{*}} \right){\left( {L_{\max}^{*} - L_{t}^{*}} \right)/L_{\max}^{*}}}}} \\ {u_{d}^{*} = \quad {u_{t}^{*} + {\left( {u_{kd}^{*} - u_{kt}^{*}} \right){\left( {L_{\max}^{*} - L_{t}^{*}} \right)/L_{\max}^{*}}}}} \\ {v_{d}^{*} = \quad {v_{t}^{*} + {\left( {v_{kd}^{*} - v_{kt}^{*}} \right){\left( {L_{\max}^{*} - L_{t}^{*}} \right)/L_{\max}^{*}}}}} \end{matrix} \end{matrix} \right\} & (20) \end{matrix}$

[0099] Here, Lkt*, ukt* and vkt* are results of the calculation by the expressions (14) to (18) for the black in the target color space (Rt, Gt, Bt)=(0, 0, 0), and Lkd*, ukd*, and vkd* represent a coordinate of the black of the projector in the CIE LUV space. Also, in the present embodiment, the matching limit lightness Lmax is 100.

[0100] Then, the fifth conversion unit 20 k uses the following expression to convert Ld*ud*vd* to XdYdZd (S38). [Equation  16] $\begin{matrix} \left. \begin{matrix} \begin{matrix} {Y_{d} = \quad {\left\lbrack {\left( {L_{d}^{*} + 16} \right)/116} \right\rbrack^{3}Y_{n}}} & {\quad {{\text{if}\quad L_{d}^{*}} > 8.000}} \\ {= \quad {\left( {L_{d}^{*}/903.3} \right)Y_{n}}} & {\quad {{\text{if}\quad L_{d}^{*}} \leqq 8.000}} \end{matrix} \\ \begin{matrix} \begin{matrix} \begin{matrix} {u_{d}^{\prime} = {{{u_{d}^{*}/13}L_{d}^{*}} + {4{X_{n}/\left( {X_{n} + {15\quad Y_{n}} + {3Z_{n}}} \right)}}}} \\ {v_{d}^{\prime} = {{{v_{d}^{*}/13}L_{d}^{*}} + {9{Y_{n}/\left( {X_{n} + {15\quad Y_{n}} + {3Z_{n}}} \right)}}}} \end{matrix} \\ {X_{d} = {\left( {9\quad {u_{d}^{\prime}/4}v_{d}^{\prime}} \right)Y_{d}}} \end{matrix} \\ {Z_{d} = {\left\lbrack {{\left( {12 - {3\quad u_{d}^{\prime}} - {20v_{d}^{\prime}}} \right)/4}v_{d}^{\prime}} \right\rbrack Y_{d}}} \end{matrix} \end{matrix} \right\} & (21) \end{matrix}$

[0101] The values of Xn, Yn, and Zn are the tristimulus values of the reference white point.

[0102] Finally, the sixth conversion unit 201 converts XdYdZd to RdGdBd based on the color characteristics of the projector (S40). The conversion expressions are the following expressions (22) and (23). [Equation  17] $\begin{matrix} {\begin{pmatrix} r_{d} \\ g_{d} \\ b_{d} \end{pmatrix} = {M_{d}^{- 1}\begin{pmatrix} {X_{d} - X_{kd}} \\ {Y_{d} - Y_{kd}} \\ {Z_{d} - Z_{kd}} \end{pmatrix}}} & (22) \end{matrix}$

[0103] In the expression (14), Md⁻¹ is an inverse matrix of the matrix Md shown in the expression (3). As the result of the calculation, Rd, Gd, Bd are zero when Rd, Gd, Bd<0, and Rd, Gd, Bd are 255 when when Rd, Gd, Bd>255. The values of Rd, Gd, and Bd obtained here are final data of the three-dimensional color correction table.

[0104] Then, the procedure returns to S26 in FIG. 5, resultantly the three-dimensional color correction table is generated based on these final data for the three-dimensional color correction table (S26), and this generated three-dimensional color correction table is stored in the color correction LUT storage section 20 b (S28).

[0105] As described above, since XtYtZt are converted to Xt′Yt′Zt′ for avoiding the influence of the adaptation of the eye, and the processing for making the chromaticity of the target white point close to the chromaticity of the white of the projector, it is possible to generate the color correction table for reproducing natural colors.

[0106] Image Processing Device

[0107] First Embodiment

[0108] In FIG. 3, the image processing device 20B executes a desired image processing to RGB image input data and outputs the image-processed image data to the image output device 30. Here, the image data is that a color image is divided into predetermined color components and respective components have some proper strength, and the data has a chromatic color or an achromatic color such as gray and black, if it is mixed in predetermined ratio. The present embodiment will be explained in the case where the image output device 30 such as a projector, a display or the like reproduces a color based on RGB data.

[0109] The image processor 20B is provided with: a color correction LUT storage section 20 b, which stores at least the color correction table with priority to color reproduction, which has been generated by the color correction table generator 20A; and a color corrector 20 a which reads a color correction table (LUT) selected by a color correction LUT selector 20 c from the color correction LUT storage section 20 b and which transforms RGB data into R′G′B′ data by reference to the thus-read color correction LUT.

[0110] Next, with referring to FIG. 4, the operation of the image processing device 20B is explained hereinafter.

[0111] As shown in FIG. 4, if the start of an image output is instructed by a user (step 70) and if a three dimensional color correction LUT is selected (step 72, Yes), the selected three dimensional color correction LUT is read out from the color correction LUT storage section 20 b and it is written into a RAM (step 74). The three dimensional color correction LUT is incorporated in the color correction section 20 a (step 76), an image processing is executed by using an interpolation calculation with referring to the three dimensional color correction LUT, and an image output processing is executed (step 78).

[0112] Although this embodiment is constructed so that in step 72 a desired LUT can be selected using the color correction LUT selector 20 i in accordance with a desired use of the user.

[0113] Since with the image processing apparatus according to the present embodiment, the image processing is conducted by using the color correction table with priority to color reproduction which conducts the processing for making the chromaticity of the target white point close to the chromaticity of the white of the projector for avoiding the influence of the adaptation of the eye, it is possible to reproduce natural colors.

[0114] Second Embodiment

[0115] In FIG. 7, the image processing device 20C executes a desired image processing to RGB image input data and outputs the image-processed image data to the image output device 30. As described in the case of first embodiment, the image data is that a color image is divided into predetermined color components and respective components have some proper strength, and the data has a chromatic color or an achromatic color such as gray and black, if it is mixed in predetermined ratio. The present second embodiment will be explained in the case where a projector reproduces a color based on RGB data.

[0116] The image processing apparatus 20C is provided with: a color correction LUT storage section 20 b for storing at least a color correction table which prioritizes color reproduction, and is generated by the color correction table generator 20A, and a color correction table which prioritizes brightness, and is constituted so as to match colors without wasting the lightness range of the projector, and a color correction unit 20 a which reads out a selected color correction table (LUT) from the color correction LUT storage section 20 b, and converts the RGB data supplied from an image data generator 20 m into the R′G′B′ while referring to the read-out color correction LUT. The constitution is designed such that when the RGB data supplied from the image data generator 20 m are data such as a natural image whose colors should be regenerated with fidelity, a predetermined data determination flag is on, and when the RGB data are data such as presentation data whose color should be regenerated while the brightness is prioritized, the predetermined data determination flag is off.

[0117] The following section describes the operation of the image processing apparatus 20C while referring to FIG. 8.

[0118] As shown in FIG. 4, when a user instructs to start image output (Step 80), the color correction unit 20 a determines whether the predetermined data determination flag for the data supplied from the image data generator 20 m is on (Step 82). When the predetermined data determination flag is on (Step 82, Yes), the three-dimensional color correction table with priority to color reproduction is read out from the color correction table storage section 20 b, and is read into a RAM (Step 84), and when the predetermined data determination flag is off (Step 82, No), the three-dimensional color correction table with priority to brightness is read out from the color correction table storage section 20 b, and is read into the RAM (Step 85). Then the read-out three-dimensional color correction LUT is integrated into the color correction unit 20 a (Step 86), and the image processing is conducted by interpolation while referring to the three-dimensional color correction table, thereby conducting the image output processing (Step 88).

[0119] The steps 82 to 88 are repeated until the end of the data (Step 90).

[0120] In the present embodiment, since either the color correction table with priority to color reproduction or the color correction table with priority to brightness is selected based on whether the data determination flag is on or off in Step 82, colors are reproduced properly according to the type of the data.

[0121] With the image processing apparatus according to the present embodiment, when the color correction table with priority to color reproduction is selected, since the processing for making the chromaticity of the target white point close to the chromaticity of the white of the projector is conducted for avoiding the influence of the adaptation of the eye, it is possible to reproduce natural colors. 

What is claimed is:
 1. An image processing apparatus comprising: a color correction table for changing an amount of conversion for a white point in accordance with luminance of white provided from an image output apparatus, wherein a desired image processing is applied to an input signal by using the color correction table, and then the signal is supplied for the image output apparatus.
 2. The image processing apparatus according to claim 1, wherein a target white point after the conversion is made close to a white point of the image output apparatus as the luminance of the white provided from the image output apparatus increases.
 3. An image processing apparatus comprising: a color correction table for prioritizing color reproduction so as to correct color for color reproduction with fidelity; and a color correction table for prioritizing brightness so as to correct color while prioritizing brightness, wherein a desired image processing is applied to an input signal by using the color correction table, then the signal is supplied for an image output apparatus, and wherein a target white point after the conversion by said color correction table for prioritizing color reproduction is made close to a white point of the image output apparatus.
 4. The image processing apparatus according to claim 3, wherein said color correction table for prioritizing brightness and said color correction table for prioritizing color reproduction are switched in accordance with the input signal.
 5. An image processing method, wherein a desired image processing is applied to an input signal by using a color correction table for changing an amount of conversion for a white point in accordance with luminance of white provided from an image output apparatus, and wherein the signal is supplied for the image output apparatus.
 6. An image processing method, wherein a desired image processing is applied to an input signal by using a color correction table for prioritizing color reproduction so as to correct color for color reproduction with fidelity, and a color correction table for prioritizing brightness so as to correct color while prioritizing brightness, then the signal is supplied for an image output apparatus, and wherein a target white point after the conversion by said color correction table for prioritizing color reproduction is made close to a white point of the image output apparatus.
 7. A computer-readable medium storing a computer-program of instructions for execution by the computer to perform an image processing for conducting a desired color correction being applied to an input signal by using a color correction table for changing an amount of conversion for a white point in accordance with luminance of white provided from an image output apparatus.
 8. A computer-readable medium storing a computer-program of instructions for execution by the computer to perform an image processing for conducting a desired color correction being applied to an input signal by using a color correction table for prioritizing color reproduction so as to correct color for color reproduction with fidelity and a color correction table for prioritizing brightness so as to correct color while prioritizing brightness.
 9. A computer-readable medium storing a color correction table for changing an amount of conversion for a white point in accordance with luminance of white provided from an image output apparatus. 